package com.mvcMovie.bean;

import java.util.List;

public class Movie {
    private Integer id;
    private String movieName;
    private Double movieScore;

    private List<MovieRecord> movieRecord;

    public Movie(Integer id, String movieName, Double movieScore) {
        this.id = id;
        this.movieName = movieName;
        this.movieScore = movieScore;
    }

    public Movie() {
    }


    @Override
    public String toString() {
        return "Movie{" +
                "id=" + id +
                ", movieName='" + movieName + '\'' +
                ", movieScore=" + movieScore +
                ", movieRecord=" + movieRecord +
                '}';
    }

    public List<MovieRecord> getMovieRecord() {
        return movieRecord;
    }

    public void setMovieRecord(List<MovieRecord> movieRecord) {
        this.movieRecord = movieRecord;
    }

    public Movie(Integer id, String movieName, Double movieScore, List<MovieRecord> movieRecord) {
        this.id = id;
        this.movieName = movieName;
        this.movieScore = movieScore;
        this.movieRecord = movieRecord;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public String getMovieName() {
        return movieName;
    }

    public void setMovieName(String movieName) {
        this.movieName = movieName;
    }

    public Double getMovieScore() {
        return movieScore;
    }

    public void setMovieScore(Double movieScore) {
        this.movieScore = movieScore;
    }

}
